import { UserInfo } from '../vo/login-user.vo';

export const tokenConfig = (user: UserInfo) => {
  return {
    userId: user.id,
    username: user.username,
    roles: user.roles,
    permissions: user.permissions,
  };
};
